/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

/**
 *
 * @author User
 */
public class TabelasGeracao {
    public static void main(String[] args) {
        AnnotationConfiguration cfg = new AnnotationConfiguration();
        cfg.addAnnotatedClass(Automovel.class);
        cfg.addAnnotatedClass(Cliente.class);
        cfg.addAnnotatedClass(Dependente.class);
        cfg.addAnnotatedClass(Funcionario.class);
        cfg.addAnnotatedClass(Montadora.class);
        cfg.addAnnotatedClass(Origem.class);
        cfg.addAnnotatedClass(Pedido.class);
        cfg.addAnnotatedClass(Pessoa.class);
        
        new SchemaExport(cfg).create(true,true);
    }
    
}
